﻿namespace SimplexSolver
{
    /// <summary>
    /// Represents one part of parametrized solution of LPTask
    /// </summary>
    public class SolutionItem
    {
        /// <summary>
        /// Minimum value of parameter with same target function value
        /// </summary>
        public double Start { get; private set; }

        /// <summary>
        /// Maximum value of parameter with same target function value
        /// </summary>
        public double End { get; private set; }

        /// <summary>
        /// Target function value
        /// </summary>
        public ISolution Item { get; private set; }

        public SolutionItem(double from, double to, ISolution item)
        {
            Start = from;
            End = to;
            Item = item.Clone();
        }
    }
}